fromString

Converts a string representation of a module type to the corresponding ModuleType enum constant.

The matching is case-sensitive and expects the exact string names as used in system configurations or data feeds (e.g., "Gallery", "Image", "Ticker").

Example:

ModuleType type = ModuleType.fromString("Image");

Recognized strings and their corresponding types:

Return

The corresponding ModuleType enum constant, or null if the input string does not match any known module type.

Parameters

x

The string value representing the module type.